package jvm;

import java.util.HashMap;
import java.util.Map;

class Point{
    @Override
    protected void finalize() throws Throwable {
        System.out.println("finalize()");
    }
}
public class GCTTest01 {
    public static void main(String[] args) {
        Map<String,Object> beanPool = new HashMap<String, Object>();
        Point p1=new Point();
        beanPool.put("key1",p1);
        p1=null;
        System.gc();
    }
}
